package com.lex.newbasketball.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.RelativeLayout;

import com.lex.newbasketball.R;
import com.lex.newbasketball.base.BaseFragment;


public class MeFragment extends BaseFragment {
    private RelativeLayout settings_person_card;

    private static MeFragment self;

    public synchronized static MeFragment getInstance(){
        if (self == null) self = new MeFragment();
        return self;
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.fragment_me);
    }

    @Override
    protected void findView() {
        settings_person_card = (RelativeLayout) findViewById(R.id.settings_person_card);
    }

    @Override
    protected void initView() {
        settings_person_card.setOnClickListener(onClickListener);
    }

    protected View.OnClickListener onClickListener = new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            startActivity(new Intent(getActivity(),SettingsActivity.class));
        }
    };

}
